<?php

namespace Modules\BlogAdmin\Database\Seeders;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;

class AuthsTableSeeder extends Seeder
{
    /**
     * php artisan module:seed Admin
     *
     * @return void
     */
    public function run()
    {
		/*                  博客管理                                 */
		
		$pid = DB::table('auth_rules')->insertGetId([
            'href' => 'blog_admin',
			'title'=>'博客管理',
			'status'=>1,
			'auth_open'=>1,
			'icon'=>'icon-blog',
			'pid'=>0,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		$id = DB::table('auth_rules')->insertGetId([
            'href' => 'blog_admin.link.index',
			'title'=>'友情链接',
			'status'=>1,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$pid,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.data',
			'title'=>'友情链接数据',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.create',
			'title'=>'添加页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.store',
			'title'=>'添加数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.edit',
			'title'=>'编辑页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.update',
			'title'=>'编辑数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.status',
			'title'=>'状态调整',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.sorts',
			'title'=>'排序',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.destroy',
			'title'=>'单个删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.link.destroy_all',
			'title'=>'批量删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		
		
		
		$id = DB::table('auth_rules')->insertGetId([
            'href' => 'blog_admin.column.index',
			'title'=>'栏目管理',
			'status'=>1,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$pid,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.data',
			'title'=>'列表数据',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.create',
			'title'=>'添加页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.store',
			'title'=>'添加数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.create_sublevel',
			'title'=>'添加子级页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.store_sublevel',
			'title'=>'添加子级数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.edit',
			'title'=>'编辑页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.update',
			'title'=>'编辑数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.status',
			'title'=>'状态',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.sorts',
			'title'=>'排序',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.column.destroy',
			'title'=>'单个删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		
		
		
		
		$id = DB::table('auth_rules')->insertGetId([
            'href' => 'blog_admin.label.index',
			'title'=>'标签管理',
			'status'=>1,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$pid,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.data',
			'title'=>'标签管理数据',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.create',
			'title'=>'添加页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.store',
			'title'=>'添加数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.edit',
			'title'=>'编辑页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.update',
			'title'=>'编辑数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.status',
			'title'=>'状态调整',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.sorts',
			'title'=>'排序',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.label.destroy',
			'title'=>'单个删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([ 
            'href' => 'blog_admin.label.destroy_all',
			'title'=>'批量删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		
		
		
		
		
		
		
		
		
		
		 
		
		
		$id = DB::table('auth_rules')->insertGetId([
            'href' => 'blog_admin.article.index',
			'title'=>'文章管理',
			'status'=>1,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$pid,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.data',
			'title'=>'列表数据',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.create',
			'title'=>'添加页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.store',
			'title'=>'添加数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.edit',
			'title'=>'编辑页面',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.update',
			'title'=>'编辑数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.status',
			'title'=>'状态调整',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.open',
			'title'=>'是否推荐',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.sorts',
			'title'=>'排序',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.destroy',
			'title'=>'单个删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.destroy_all',
			'title'=>'批量删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.article.push_url',
			'title'=>'文章推送',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		$id = DB::table('auth_rules')->insertGetId([
            'href' => 'blog_admin.comment.index',
			'title'=>'评论管理',
			'status'=>1,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$pid,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.comment.data',
			'title'=>'列表数据',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.comment.destroy',
			'title'=>'单个删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.comment.destroy_all',
			'title'=>'批量删除',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
		
		
		
		
		
		
		$id = DB::table('auth_rules')->insertGetId([
            'href' => 'blog_admin.config.index',
			'title'=>'博客配置',
			'status'=>1,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$pid, 
			'created_at'=>date('Y-m-d H:i:s')
		]);
		DB::table('auth_rules')->insert([
            'href' => 'blog_admin.config.update',
			'title'=>'博客配置数据处理',
			'status'=>0,
			'auth_open'=>1,
			'icon'=>'',
			'pid'=>$id,
			'created_at'=>date('Y-m-d H:i:s')
		]);
    }
}
















